package com.nidu.demo.dict.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.dict.dto.DictTypeCO;
import com.nidu.demo.dict.mapper.dataobject.DictTypeDO;
import com.nidu.demo.dict.model.DictType;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface DictTypeConvertor extends BaseConvertor<DictTypeDO, DictType, DictTypeCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    DictTypeDO toDataObject(DictType company);

}